/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package game.platformer.levels;
import game.platformer.platformer;
import org.anddev.andengine.opengl.texture.Texture;
import org.anddev.andengine.opengl.texture.TextureOptions;
import org.anddev.andengine.opengl.texture.region.TextureRegion;
import org.anddev.andengine.opengl.texture.region.TextureRegionFactory;
/**
 *
 * @author cow
 */
public class industryTextureSet implements levelTexturePackage{
	//var block-------------------
	private Texture platformsT;
	private Texture backgroundT;
	private TextureRegion backgroundTR;
	private TextureRegion industrialWideTR, industrialHalfTR;
	private TextureRegion junkDecorWideTR, junkDecorHalfTR;
	//----------------------------
	//load the textures-----------
	public void loadTextures(platformer game){
		//load the images to be used as platforms
		platformsT = new Texture(256, 128, TextureOptions.BILINEAR_PREMULTIPLYALPHA);

		industrialWideTR = TextureRegionFactory.createFromAsset(platformsT, game, "industrial/industrialWide.png", 0, 0);
		junkDecorWideTR = TextureRegionFactory.createFromAsset(platformsT, game, "industrial/junkDecorWide.png", 0, 32);
		industrialHalfTR = TextureRegionFactory.createFromAsset(platformsT, game, "industrial/industrialHalf.png", 0, 48);
		junkDecorHalfTR = TextureRegionFactory.createFromAsset(platformsT, game, "industrial/junkDecorHalf.png", 128, 48);

		//background texture
		backgroundT = new Texture(1024, 512, TextureOptions.BILINEAR_PREMULTIPLYALPHA);
		backgroundTR = TextureRegionFactory.createFromAsset(backgroundT, game, "industrial/industrialBG.png", 0, 0);

		//load textures
		game.getEngine().getTextureManager().loadTextures(backgroundT, platformsT);
	}
	//getters---------------------
	public TextureRegion getIndustBaseWide(){ return industrialWideTR;}
	public TextureRegion getIndustBaseHalf(){ return industrialHalfTR;}
	public TextureRegion getJunkDecorWide(){ return junkDecorWideTR;}
	public TextureRegion getJunkDecorHalf(){ return junkDecorHalfTR;}
	public TextureRegion getBackground(){ return backgroundTR;}
}
